<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户周报列表</title>
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/views/common_css.jsp"%>
<%@ include file="/WEB-INF/views/common_js.jsp"%>
<script type="text/javascript">
	$(function(){
		$('#pp').pagination({
		    total:${total},
		    pageSize:${pageSize},
		    pageNumber:${pageNum},
		    onSelectPage:function(pageNumber, pageSize){
				$(this).pagination('loading');
				//alert('pageNumber:'+pageNumber+',pageSize:'+pageSize);
				reAddTab("我的周报","${baseurl}weeklog/myself/"+pageNumber+"/"+pageSize);
				$(this).pagination('loaded');
			}
		});
	});
</script>
</head>
<body>

		<table width="100%" border=1>
			<tr>
				<td>
				<b>所在部门：</b>${department.departmentName }
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<b>所在岗位：</b>${job.jobName }
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<%-- <b>上级领导人：</b>${leadUser.username } --%>
				</td>
			</tr>
		</table>

		周报列表：
		<table width="100%" border=1 class="huanse">
			<tr align="center">
				<td width="34%"><b>本周主要工作内容</b></td>
				<td width="34%"><b>下周计划工作内容</b></td>
				<td width="8%"><b>自我评分</b></td>
				<td width="8%"><b>上级评分</b></td>
				<td width="8%"><b>创建日期</b></td>
				<td width="8%"><b>操作</b></td>
			</tr>
			<c:forEach items="${weeklogs }" var="item">
				<tr align="center">
					<td>${item.mainContent }</td>
					<td>${item.planContent }</td>
					<td>${item.myScore }</td>
					<td>${item.leadScore }</td>
					<td><fmt:formatDate value="${item.createtime}" pattern="yyyy-MM-dd" /></td>
					<td>
						<a href="javascript:javascript:createmodalwindow('周报总结',0.63,0.87,'${baseurl}weeklog/edit/1/${item.weeklogId}')">修改内容</a>
					</td>

				</tr>
			</c:forEach>

		</table>
		<div id="pp" style="background:#efefef;border:1px solid #ccc;"></div> 
</body>
</html>